package com.weitu.environmental.solidWaste.service.impl;

import com.weitu.environmental.solidWaste.entity.OutsourcingFee;
import com.weitu.environmental.solidWaste.entity.SolidWasteApply;
import com.weitu.environmental.solidWaste.mapper.OutsourcingFeeMapper;
import com.weitu.environmental.solidWaste.service.OutsourcingFeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author zhangqingxi 2017-04-20
 */
@Service
public class OutsourcingFeeServiceImpl implements OutsourcingFeeService {
    private final OutsourcingFeeMapper outsourcingFeeMapper;

    @Autowired
    public OutsourcingFeeServiceImpl(OutsourcingFeeMapper outsourcingFeeMapper) {
        this.outsourcingFeeMapper = outsourcingFeeMapper;
    }

    @Override
    public List<OutsourcingFee> findByParam(Map paramMap) {
        return outsourcingFeeMapper.findByParam(paramMap);
    }

    @Override
    public Integer findByParamCount(Map paramMap) {
        return outsourcingFeeMapper.findByParamCount(paramMap);
    }

    @Override
    public OutsourcingFee findById(String id) {
        return outsourcingFeeMapper.findById(id);
    }

    @Transactional
    @Override
    public Integer add(Map paramMap) {
        return outsourcingFeeMapper.add(paramMap);
    }

    @Transactional
    @Override
    public Integer updateById(Map paramMap) {
        return outsourcingFeeMapper.updateById(paramMap);
    }


}
